package com.pan.hisystem.service.impl;

import com.pan.hisystem.pojo.Department;
import com.pan.hisystem.mapper.DepartmentMapper;
import com.pan.hisystem.service.IDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author qingyang
 * @since 2022-03-13
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements IDepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;
    @Override
    public Department getDepByUid(Integer uid) {
        return departmentMapper.getDepByUid(uid);
    }
}
